package com.rowenci.iot_agriculture.service.api;

import com.rowenci.iot_agriculture.bean.Worker;

import java.util.List;
import java.util.Optional;

public interface WorkerService {

    Optional<Worker> findById(Integer id);

    List<Worker> findAll();

    boolean addWorker(Worker worker);

    boolean deleteWorkerByName(String name);

    boolean updateWorkerById(Worker worker);

    Worker findByRfid_id(Integer rfid_id);

}
